package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yami.shop.bean.param.PostsQuery;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用于存储社区中的热门话题
 * </p>
 *
 * @author EXiaoKe
 * @since 2025-04-14
 */
@Getter
@Setter
@ToString
@TableName("tz_hot_topics")
public class HotTopics extends PostsQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 话题的唯一标识符
     */
    @TableId(value = "topic_id", type = IdType.AUTO)
    private Long topicId;

    /**
     * 话题标题
     */
    private String title;

    @TableField(exist = false)
    private Long postId;


    /**
     * 话题描述
     */
    private String description;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 最后更新时间
     */
    private LocalDateTime updatedAt;
}
